//FYI: https://github.com/Tencent/puerts/blob/master/doc/unity/manual.md

import FairyEditor = CS.FairyEditor;

const App = FairyEditor.App;

let menuId = {
    "custom": "0",
    "build": "1"
}

App.menu.AddItem("custom", menuId.custom, (name) => {
    console.log("call menuitem.");
});

function onDestroy() {
    App.menu.RemoveItem(menuId.custom);
}

export { onDestroy };